﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Web
{
    public partial class Default : System.Web.UI.Page
    {
        protected List<Models.ModelArticle> xueyuanList;
        protected List<Models.ModelArticle> xueshengList;
        protected List<Models.ModelArticle> jiuyeList;
        protected List<Models.ModelArticle> dangwuList;
        protected void Page_Load(object sender, EventArgs e)
        {
              string xueyuan = BLL.GetList.ColumnNameToID(true)["科研成果"].ToString();
            string xuesheng = BLL.GetList.ColumnNameToID(true)["学生动态"].ToString();
            string jiuye = BLL.GetList.ColumnNameToID(true)["就业信息"].ToString();
            string dangwu = BLL.GetList.ColumnNameToID(true)["党务公开"].ToString();
            xueyuanList = BLL.GetList.GetArticleList("top 5 *", xueyuan, "UpdateDate", "Desc");
            xueshengList = BLL.GetList.GetArticleList("top 5 *", xuesheng, "UpdateDate", "Desc");
            jiuyeList = BLL.GetList.GetArticleList("top 5 *", jiuye, "UpdateDate", "Desc");
            dangwuList = BLL.GetList.GetArticleList("top 5 *", dangwu, "UpdateDate", "Desc");
        }
    }
}